package demo2;

public class Drived extends Base{
    public int a;
    public int b;
    public int c;

    public void test(){
        //a=1;
//        b=2;
//        c=3;
//        //System.out.println(super.a);//两个类同名情况会输出子类的数据，即访问的子类,但加了supper后就会输出父类的
//        System.out.println(a);
//        System.out.println(b);
//        System.out.println(c);
        Methed1(10);
    }
    public void Methed1(){
        System.out.println("无参数");
    }
}
